package com.guigu.tms.commons.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.guigu.tms.commons.entity.base.AuthUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 司机表
 * </p>
 *
 * @author zwj
 * @since 2022-09-28
 */
@TableName("pd_truck_driver")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TruckDriver implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
//    @TableId(value = "truck_driver_id", type = IdType.AUTO)
//    private Integer truckDriverId;

    private String id;

    /**
     * 用户id，来自用户表
     * ->对应1对1的用户
     */
    private String userId;

    @TableField(exist = false)
    private AuthUser user;

    /**
     * 所属车队id
     */
    private String fleetId;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 图片
     */
    private String picture;

    /**
     * 驾龄
     */
    private Integer drivingAge;
}
